PREFIX = /usr/local

BIN = gpx2yaml

all: build

build: clean
	$(CC) -c xml.c util.c gpx2yaml.c ${CFLAGS}
	$(CC) -o $(BIN) xml.o util.o gpx2yaml.o ${LDFLAGS}

clean:
	rm -f $(BIN) *.o

install: all
	mkdir -p "${DESTDIR}${PREFIX}/bin"
	cp -f ${BIN} "${DESTDIR}${PREFIX}/bin"
